home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib12.dsk
/
PEEKING AND TWEAKING DOS.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
3KB
|
82 lines
10 REM **********************
20 REM * PEEK & TWEAK DOS *
30 REM * BY S. KARATSORIDIS *
40 REM * AFTER AN ARTICLE *
50 REM * BY DOUG HENNIG *
60 REM * COPYRIGHT (C) 1983 *
70 REM * BY MICRO-SPARC INC *
80 REM * LINCOLN, MA. 01773 *
90 REM **********************
100 HOME
110 A$ = "PEEKING AND TWEAKING DOS"
120 GOSUB 1000
130 A$ = "BY DOUG HENNIG": GOSUB 1000
140 PRINT : PRINT :A$ = "PROGRAM BY STAVROS KARATSORIDIS"
150 GOSUB 1000
160 VTAB 21: PRINT "** COPYRIGHT 1983 BY MICROSPARC, INC. **"
170 VTAB 15:A$ = "PRESS ANY KEY TO CONTINUE": INVERSE : GOSUB 1000: NORMAL
180 POKE -16368,0: WAIT -16384,128: POKE -16368,0
190 HOME
200 VTAB 3:A$ = "*** MAIN MENU ***": GOSUB 1000: PRINT : PRINT
210 HTAB 4: PRINT "1. DISPLAY DELETED FILES": PRINT
220 HTAB 4: PRINT "2. DISPLAY FREE SECTORS": PRINT
230 HTAB 4: PRINT "3. ESCAPE FROM A CATALOG": PRINT
240 HTAB 4: PRINT "4. PREVENT NOT DIRECT COMMAND ERRORS": PRINT
250 HTAB 4: PRINT "5. LOWER CASE TEXT IN TEXT FILES": PRINT
260 HTAB 4: PRINT "6. "; CHR$(34);"WILD CARD"; CHR$(34);" FILE NAMES": PRINT
270 HTAB 4: PRINT "7. EXIT PROGRAM": PRINT : PRINT
280 HTAB 4: INVERSE : PRINT "YOUR CHOICE";: NORMAL : GET B$
290 IF B$ <"1" OR B$ >"7" THEN 200
300 B = VAL(B$): ON B GOTO 400,500,600,700,800,900,310
310 HOME : PRINT "BYE!": END
400 HOME :A$ = "DISPLAY DELETED FILES": GOSUB 1000
410 PRINT : PRINT "INSTALLING PATCH..."
420 P$ = "ADD9:85 6": GOSUB 2000
430 P$ = "ADFE:4C EA BC": GOSUB 2000
440 P$ = "BCEA:20 ED FD A5 6 10 A 8A 48 20 48 F9 68 AA 4C E AE 4C 1 AE"
450 GOSUB 2000
460 GOSUB 3000
470 HOME : GOTO 200
500 HOME :A$ = "DISPLAY FREE SECTORS": GOSUB 1000
510 PRINT : PRINT "INSTALLING PATCH..."
520 P$ = "ADC0:20 69 BA": GOSUB 2000
530 P$ = "BA69:A9 0 85 40 85 41 A0 C8 18 B9 F2 B3 F0 E A 90 FB 48 E6 40 D0 2 E6 41 68 18 90 F0 88 D0 E9 A6 40 A5 41 20 24 ED 60": GOSUB 2000
540 P$ = "B3AF:A0 BD A0 D4 C3 C5 D3 A0 C5 C5 D2 C6"
550 GOSUB 2000
560 GOSUB 3000
570 HOME : GOTO 200
600 HOME :A$ = "ESCAPE FROM A CATALOG": GOSUB 1000
610 PRINT : PRINT "INSTALLING PATCH..."
620 P$ = "AE39:20 DF BC": GOSUB 2000
630 P$ = "BCDF:20 1B FD C9 9B F0 1 60 4C 2C AE"
640 GOSUB 2000
650 GOSUB 3000
660 HOME : GOTO 200
700 HOME :A$ = "PREVENT NOT DIRECT COMMAND ERRORS": GOSUB 1000
710 PRINT : PRINT "INSTALLING PATCH..."
720 P$ = "A021:EA EA EA"
730 GOSUB 2000
740 GOSUB 3000
750 HOME : GOTO 200
800 HOME :A$ = "LOWER CASE TEXT IN TEXT FILES": GOSUB 1000
810 PRINT : PRINT "INSTALLING PATCH..."
820 P$ = "A649:FF N A657:0"
830 GOSUB 2000
840 GOSUB 3000
850 HOME : GOTO 200
900 HOME :A$ = CHR$(34) +"WILD CARD" + CHR$(34) +" FILE NAMES": GOSUB 1000
910 PRINT : PRINT "INSTALLING PATCH..."
920 P$ = "B201:4C 58 A4": GOSUB 2000
930 P$ = "A450:E8 B1 42 DD C6 B4 D0 A C8 C0 1E D0 F3 AE 9C B3 18 60 C9 AD F0 F7 4C B B2"
940 GOSUB 2000
950 PRINT : PRINT : FLASH : PRINT "WARNING!";: NORMAL : PRINT " THE INT COMMAND IS DISABLED.": PRINT : PRINT : GOSUB 3000
960 HOME : GOTO 200
999 END
1000 HTAB 20 -( LEN(A$)/2): PRINT A$: RETURN
2000 P$ = P$ +" N D9C6G"
2010 PRINT : PRINT P$
2020 FOR J = 1 TO LEN(P$): POKE 511 +J, ASC( MID$ (P$,J,1)) +128: NEXT J: POKE 72,0: CALL -144
2030 RETURN
3000 PRINT : PRINT "PATCH INSTALLED.": PRINT : PRINT : INVERSE : PRINT "PRESS SPACE BAR TO RETURN TO MENU": PRINT "OR ANY OTHER KEY TO QUIT";: GET B$
3010 NORMAL : IF B$ < >" " THEN PRINT : PRINT : END
3020 RETURN